package ui;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import net.miginfocom.swing.MigLayout;
import java.awt.Label;
import javax.swing.JLabel;


public class forgot extends JFrame {

	private JPanel contentPane;
	private JTextField txtEmail_1;
	private JButton btnBack;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					forgot frame = new forgot();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public forgot() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 300, 400);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		txtEmail_1 = new JTextField();
		txtEmail_1.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
			}
		});
		contentPane.setLayout(new MigLayout("", "[185px,grow][][]", "[20px][][][23px][]"));
		txtEmail_1.setText("E-mail");
		contentPane.add(txtEmail_1, "cell 0 0 3 1,growx,aligny top");
		txtEmail_1.setColumns(10);
		
		JButton btnSendUser = new JButton("Submit");
		btnSendUser.addMouseListener(new MouseAdapter() {
			public void mousePressed(MouseEvent e) {
				forgot_second x = new forgot_second();
				x.setVisible(true);
				dispose();
			}
		});
		contentPane.add(btnSendUser, "cell 2 1,growx,aligny top");
		
		btnBack = new JButton("Back");
		btnBack.addMouseListener(new MouseAdapter() {
			@Override
			public void mousePressed(MouseEvent e) {
				login x = new login();
				x.setVisible(true);
				dispose();
			}
		});
		contentPane.add(btnBack, "cell 2 2,growx");
	}

}
